<template>
	<!-- 无数据时显示 -->
	<view class="empty-page w-full flex-col flex-center pt-82 bg--w111-fff rd-24rpx">
		<image class="empty-img" :src="src">
		</image>
		<view class="fs-26 text--w111-999 lh-36rpx pt-16">{{title}}</view>
		<slot name="bottom"></slot>
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: '暂无记录',
			},
			src: {
				type: String,
				default: 'https://jiangxinsaas.oss-cn-beijing.aliyuncs.com/tuchuang/481719503868Q6wyud.gif',
			}
		},
		data() {
			return {

			}
		},
		computed: {}
	}
</script>

<style lang="scss">
	.pt-82 {
		padding: 82rpx 0 160rpx;
	}

	.empty-img {
		width: 440rpx;
		height: 360rpx;
	}

	.flex-center {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.w-100-p111-,
	.w-full {
		width: 100%;
	}

	.flex-col {
		display: flex;
		flex-direction: column;
	}

	.flex-center {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.bg--w111-fff {
		background-color: #fff;
	}

	.rd-24rpx {
		border-radius: 12px;
	}

	.pt-82 {
		padding: 42px 0 83px;
	}
</style>